package org.moore.controller;

import org.moore.view.WelcomePanel;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
// 登录跳转按钮监听累类
public class LoginButtonListener implements MouseListener {
    private final WelcomePanel welcomePanel;


    public LoginButtonListener(WelcomePanel welcomePanel) {
        this.welcomePanel = welcomePanel;
    }
    // 跳转至登录页
    @Override
    public void mouseClicked(MouseEvent e) {
        WelcomePanel.getCardLayout().show(welcomePanel, "Login");
    }

    @Override
    public void mousePressed(MouseEvent e) {

    }

    @Override
    public void mouseReleased(MouseEvent e) {

    }

    @Override
    public void mouseEntered(MouseEvent e) {

    }

    @Override
    public void mouseExited(MouseEvent e) {

    }
}
